<?php /* Smarty version Smarty-3.1.21-dev, created on 2015-04-16 10:27:29
         compiled from "C:/wamp/www/project.adm.uppii/admin/aplications/views/login\login.tpl" */ ?>
<?php /*%%SmartyHeaderCode:11808552fb8c14f4bb2-22075956%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8165286146fc6d453f71e8e0cb152d60b6c2379f' => 
    array (
      0 => 'C:/wamp/www/project.adm.uppii/admin/aplications/views/login\\login.tpl',
      1 => 1426773410,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '11808552fb8c14f4bb2-22075956',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21-dev',
  'unifunc' => 'content_552fb8c15df1e8_89908174',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_552fb8c15df1e8_89908174')) {function content_552fb8c15df1e8_89908174($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('header.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<section class='container-fluid'>
    <div class='row'>
        <div class='col-md-12 col-sm-12'>
            <div style="display:none" id='alertbox' class='alert alert-info'>
                <i class='fa fa-spin fa-spinner'></i>
                <em>Processando dados aguarde...</em>
            </div>

            <div class='login_box_center'>		
                <form id='frm_login' action="<?php echo @constant('URLDOMINIO');?>
admin/aplications/actions/login.act.php" method="POST">
                    <div id="login_box">
                        <div class='login_box_header bgGrayDegrd'>
                            <h2>Logo da Empresa</h2>
                        </div>
                        <div class="login_label">
                            <label for="user"><i class="fa fa-envelope-o">&nbsp;</i><b>E-mail</b></label>
                        </div>
                        <div class="input-group">
                            <p>
                                <input type="text" class="form-control" name='login_email' placeholder="Digite seu e-mail">
                            </p>
                        </div>

                        <div class="login_label" style="margin-top: 20px;">
                            <label for="pass"><i class="ion ion-lock-combination">&nbsp;</i><b>Senha</b></label>
                        </div>
                        <div class="input-group">
                            <input type="password" id="senha" class="form-control" name='login_senha' placeholder="Digite a senha">
                        </div>

                        <button id='btnLogin' class='btn btn-info v_margin_15x'>
                            <i class='fa fa-sign-in'></i>
                            Logar
                        </button>
                        <span class="forgot_password">
                            <a href="#" data-remodal-target="modal" >Esqueceu a senha?</a>
                        </span>
                    </div>
                    
                    <input type="hidden" name="acao" value="login" />
                </form>
            </div>
        </div>
    </div>
                    
    <?php echo $_smarty_tpl->getSubTemplate ('forgotpass.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

                    
                    
    <?php echo '<script'; ?>
 type='text/javascript'>
        $(function () {
            /*faz login*/
            var options = {
                beforeSubmit: function (arr, $form, options) {
                    $("#alertbox").show().removeClass("alert-success, alert-warning").addClass('alert-info').html("<i class='fa fa-spin fa-spinner'></i> <em>Processando dados aguarde...</em>");
                },
                success: function (responseText, statusText, xhr, $form) {
                    var $_obj = $.parseJSON(responseText);
                    if ($_obj.status) {
                        $("#alertbox").removeClass('alert-info').addClass('alert-success').html("<i class='ion ion-checkmark'></i> " + $_obj.msg);
                        setTimeout(function () {
                            window.location.reload();
                        }, 1000);
                    } else {
                        $("#alertbox").removeClass('alert-info').addClass('alert-warning').html("<i class='ion ion-alert-circled'></i> " + $_obj.msg);
                    }
                }
            };
            $("#frm_login").ajaxForm(options);
            
            
            /*esqueceu a senha*/
            var optionForgotPass = {
                beforeSubmit : function(){
                    $("#loadForgot").show();
                },
                success: function (responseText, statusText, xhr, $form) {
                    if(responseText!==""){
                        var $_obj = jQuery.parseJSON(responseText);
                        if($_obj.status){
                            var ins = $.remodal.lookup[$("[data-remodal-id='modal']").data('remodal')];
                            ins.close();
                            $("#alertbox").show().removeClass('alert-info').addClass('alert-success').html("<i class='ion ion-checkmark'></i> " + $_obj.msg);
                        }
                    }
                }
            };
            $("#frm_forgotpass").ajaxForm(optionForgotPass);
        });
    <?php echo '</script'; ?>
>	    
</section>
<?php echo $_smarty_tpl->getSubTemplate ('footer.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
<?php }} ?>
